package com.bookshop.service;

import com.bookshop.entity.Cart;
import com.bookshop.entity.CartWithBook;

import java.util.ArrayList;
import java.util.List;


public interface CartService {
    int addToCart(Cart cart);
    int updateCart(Cart cart);
    int deleteFromCart(int userId , List<Integer> bookIds);
    ArrayList<CartWithBook> searchAllCart(Integer userId);
    int addToFavorite(int userId , int bookId);
}
